package tools;

public class Page {
    private int PageNo = 1;
    private int pageSize =5;
    private int pageCloud;
    private int totle;

    public void jisuan(){
        if(this.totle%this.pageSize == 0){
            this.pageCloud = (this.totle/this.pageSize);
        }else{
            this.pageCloud = (this.totle/this.pageSize)+1;
        }
    }

    public int getPageNo() {
        return PageNo;
    }

    public void setPageNo(int pageNo) {
        PageNo = pageNo;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageCloud() {
        return pageCloud;
    }

    public void setPageCloud(int pageCloud) {
        this.pageCloud = pageCloud;
    }

    public int getTotle() {
        return totle;
    }

    public void setTotle(int totle) {
        this.totle = totle;
    }
}
